#pragma once

#include "color.h"
#include <vector>

class picture
{
public:
	picture();
	picture(unsigned int x, unsigned int y);
	picture(const char* name);
	~picture();

	void setX(unsigned int x);
	void setY(unsigned int y);
	void setDimensions(unsigned int x, unsigned int y);
	unsigned int getX();
	unsigned int getY();
	void setPixel(unsigned int X, unsigned int Y, color pixel);
	color getPixel(unsigned int X, unsigned int Y);
	void saveBMP(const char* name);
	bool readBMP(const char* name);
	
protected:
	unsigned int X;
	unsigned int Y;
	std::vector<color*> image;


};